<template>
  <div>
          <div
            style="
              box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
              padding: 10px 20px;
              border-radius: 5px;
              margin-bottom: 10px;
            "
            >
            你好！{{ user.name }}，祝你开心每一天！
          </div>

          <div style="display:block">
            <el-card style="width: 100%; ">
              <div slot="header" class="clearfix">
                <span style="display: block; text-align: center;" class="system">创新创业管理系统欢迎您</span>
              </div>
              <div>
                  <div style="height: 300px;" class="block">
                    <el-carousel type="card" height="300px">
                      <el-carousel-item v-for="item in imgList" :key="item.id" name="创新创业">
                        <img style="object-fit: scale-down; width: 100%; height: 100%;" :src="item.idView" class="image"> //图片自适应
                      </el-carousel-item>
                    </el-carousel>
                  </div>
              </div>
            </el-card>
            <el-card>
              <el-calendar v-model="value"></el-calendar>
            </el-card>
            <!-- <el-card style="display: block; margin-top: 5px;">
              <div>
                <span style="display: block; text-align: center; font-size:small; color:darkblue;">青春是一个短暂的美梦, 当你醒来时, 它早已消失无踪</span>
                <el-divider></el-divider>
                <span style="display: block; text-align: center; font-size:small; color:darkblue;">少量的邪恶足以抵消全部高贵的品质, 害得人声名狼藉</span>
              </div>
            </el-card> -->
          </div>
          
  </div>
</template>

<script>
export default {
    name:"Home",
    data(){
        return{
            user:JSON.parse(localStorage.getItem('honey-user')||'{}'),
            value: new Date(),
            imgList: [
                {id:0,idView:require("@/assets/images/carousel/innovate5.jpg")},
                {id:1,idView:require("@/assets/images/carousel/innovate8.png")},
                {id:2,idView:require("@/assets/images/carousel/innovate7.webp")},
                {id:3,idView:require("@/assets/images/carousel/innovate4.jpg")}            
            ]
        }
    },
    created(){

    },
    methods:{

    }
}
</script>

<style scoped>
:deep(.el-calendar-table .el-calendar-day){
    width: 60px;
    height: 30px;
}
.system {
  font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif;
  font-size: 28px;
  font-weight: 700;
  font-style: italic;
  color: #009688;  
  line-height: 35px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);  /* 添加文本阴影增加立体感 */
  background: linear-gradient(to bottom right, #f44336, #7a0b0b);  /* 背景渐变色 */
  -webkit-background-clip: text;  /* 使背景色仅应用于文本 */
  background-clip: text;  /* 标准属性 */
  -webkit-text-fill-color: transparent;  /* 使文本颜色透明，以显示背景色 */
}
/* 字体属性的顺序：字体风格→字体粗细→字体大小→字体类型 */
 .block{
  background: #c8cfd8;
    width: 100%;
    text-align: center;
    /* margin-left: 142px; */
    /* width: 80.6%; */
    height: 100%;
}
.el-carousel__item h3 {
    color: #475669;
    font-size: 14px;
    opacity: 0.75;
    line-height: 150px;
    margin: 0;
  }

  .el-carousel__item:nth-child(2n) {
     background-color: #99a9bf;
  }
  
  .el-carousel__item:nth-child(2n+1) {
     background-color: #d3dce6;
  }
</style>